package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 证书信息对象 certificate
 * 
 * @author ess
 * @date 2021-10-18
 */
public class Certificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 证书id */
    private String certId;

    /** 算法 */
    @Excel(name = "算法")
    private String algorithm;

    /** 证书(公用)名称 */
    @Excel(name = "证书(公用)名称")
    private String certName;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 所在省份 */
    @Excel(name = "所在省份")
    private String province;

    /** 所在城市 */
    @Excel(name = "所在城市")
    private String city;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unit;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String department;

    /** 颁发者 */
    @Excel(name = "颁发者")
    private String issuer;

    /** 颁发者单位 */
    @Excel(name = "颁发者单位")
    private String issuerUnit;

    /** Cer证书base64 */
    @Excel(name = "Cer证书base64")
    private String cerBase64;

    /** pfx证书base64 */
    @Excel(name = "pfx证书base64")
    private String pfxBase64;

    /** 有效期开始时间 */
    @Excel(name = "有效期开始时间")
    private String startTime;

    /** 有效期结束时间 */
    @Excel(name = "有效期结束时间")
    private String endTime;

    /** 证书申请时间 */
    @Excel(name = "证书申请时间")
    private String applyTime;

    /** 证书密钥(软证书） */
    @Excel(name = "证书密钥(软证书）")
    private String certPsw;

    /** 证书文件状态 1 证书未生成 2 存在CER证书  3 存在PFX证书 4  存在CER和PFX证书 */
    @Excel(name = "证书文件状态 1 证书未生成 2 存在CER证书  3 存在PFX证书 4  存在CER和PFX证书")
    private Long certState;

    /** 状态 0无效1有效 */
    @Excel(name = "状态 0无效1有效")
    private Long state;

    public void setCertId(String certId) 
    {
        this.certId = certId;
    }

    public String getCertId() 
    {
        return certId;
    }
    public void setAlgorithm(String algorithm) 
    {
        this.algorithm = algorithm;
    }

    public String getAlgorithm() 
    {
        return algorithm;
    }
    public void setCertName(String certName) 
    {
        this.certName = certName;
    }

    public String getCertName() 
    {
        return certName;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setIssuer(String issuer) 
    {
        this.issuer = issuer;
    }

    public String getIssuer() 
    {
        return issuer;
    }
    public void setIssuerUnit(String issuerUnit) 
    {
        this.issuerUnit = issuerUnit;
    }

    public String getIssuerUnit() 
    {
        return issuerUnit;
    }
    public void setCerBase64(String cerBase64) 
    {
        this.cerBase64 = cerBase64;
    }

    public String getCerBase64() 
    {
        return cerBase64;
    }
    public void setPfxBase64(String pfxBase64) 
    {
        this.pfxBase64 = pfxBase64;
    }

    public String getPfxBase64() 
    {
        return pfxBase64;
    }
    public void setStartTime(String startTime) 
    {
        this.startTime = startTime;
    }

    public String getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(String endTime) 
    {
        this.endTime = endTime;
    }

    public String getEndTime() 
    {
        return endTime;
    }
    public void setApplyTime(String applyTime) 
    {
        this.applyTime = applyTime;
    }

    public String getApplyTime() 
    {
        return applyTime;
    }
    public void setCertPsw(String certPsw) 
    {
        this.certPsw = certPsw;
    }

    public String getCertPsw() 
    {
        return certPsw;
    }
    public void setCertState(Long certState) 
    {
        this.certState = certState;
    }

    public Long getCertState() 
    {
        return certState;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("certId", getCertId())
            .append("algorithm", getAlgorithm())
            .append("certName", getCertName())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .append("unit", getUnit())
            .append("department", getDepartment())
            .append("issuer", getIssuer())
            .append("issuerUnit", getIssuerUnit())
            .append("cerBase64", getCerBase64())
            .append("pfxBase64", getPfxBase64())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("applyTime", getApplyTime())
            .append("certPsw", getCertPsw())
            .append("certState", getCertState())
            .append("state", getState())
            .toString();
    }
}
